<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>同步树</title>
	<script type="text/javascript">
		var Global = {
			contextPath:'/bingo.ui.framework'
		} 
	</script>
	<link  href="../jquery.tree.css" rel="stylesheet" type="text/css"  class="view-source"/>
	<link  href="../../../../themes/default/style.css" rel="stylesheet" class="view-source">
	<script src="../../../../scripts/jquery.js" type="text/javascript" class="view-source"></script>
	<script src="../../../../scripts/common.js" type="text/javascript" class="view-source"></script>
	<script src="../../../../scripts/browserfix.js" type="text/javascript"  class="view-source"></script>
	<script src="../../../../scripts/plugins/jquery.json.js" type="text/javascript"></script>
	
	<script src="../jquery.tree.js" type="text/javascript" class="view-source"></script>
	
	<script src="../../demo.js"></script>
	<link href="../../demo.css" rel="stylesheet">

	<style>
		.tree{
			width:200px;
		}
	</style>

<script class="view-source noparse">
	//<div id="dyn-tree" class="tree" style="padding: 5px; overflow-y: auto;"></div>
	//syn.tree.demo: select id as ID , text as TEXT ,pid as PARENT_ID from tree
	$(function(){
		$('#dyn-tree').tree({
           	method	 :   'post',
           	asyn	 :   false,
           	rootId   :   'root',
           	rootText :   '根节点',
			CommandName : 'java.tree.command',
			params : {
				daoBeanName:'dao',
			 	sqlId : 'syn.tree.demo',
			 	testId:'123'
		    }
        }) ;
	}) ;
</script>
	
</head>

<body>
	<div id='content-dyn' class='demo'>
		<h1></h1>
		<div id="dyn-tree" class="tree" style="padding: 5px; overflow-y: auto;"></div>
	</div>
</body>
</html>